package com.iweb.controller;

import com.iweb.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Controller
@RequestMapping("equipment")
public class EquipmentController {

    @Autowired
    EquipmentService equipmentService;

    @RequestMapping(value = "/selectAll")
    public String select(HttpServletResponse resp, HttpServletRequest req) {
        req.setAttribute("lists", equipmentService.selectAll());
        return "user/equipment/index";
    }
}
